﻿#region

using FluentNHibernate.Mapping;

#endregion

namespace MediaSage.Lib.Database
{
    public class DatabaseBaseMap : ClassMap<DatabaseBaseEntity>
    {
        #region Constructors

        public DatabaseBaseMap()
        {
            Id(x => x.ID).GeneratedBy.Guid();
            HasOne(x => x.Config);
            HasMany(x => x.Videos);
            HasMany(x => x.Messages);
            HasOne(x => x.ClientConfig);
        }

        #endregion Constructors
    }
}